<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/dateFormat.js"></script>
		<script type="text/javascript">
			function pressTest(){
				var date = new Date();
				var maxday=new Date("2012", "2", 0);
				alert(date.getYear()+1900 + "\r\n" + (date.getMonth()+1) +"\r\n"+date.getDate());
			}
		</script>
	</head>
	<body>
		<input type="button" value="test" onclick="pressTest();" />
	</body>
</html>
